import request from '@/utils/request'

// 查询鉴定详情列表
export function listDetails(query) {
  return request({
    url: '/archive/details/list',
    method: 'get',
    params: query
  })
}

// 查询鉴定详情详细
export function getDetails(appraisalDetailId) {
  return request({
    url: '/archive/details/' + appraisalDetailId,
    method: 'get'
  })
}

// 新增鉴定详情
export function addDetails(data) {
  return request({
    url: '/archive/details',
    method: 'post',
    data: data
  })
}

// 修改鉴定详情
export function updateDetails(data) {
  return request({
    url: '/archive/details',
    method: 'put',
    data: data
  })
}

// 删除鉴定详情
export function delDetails(appraisalDetailId) {
  return request({
    url: '/archive/details/' + appraisalDetailId,
    method: 'delete'
  })
}
